package com.exercise.widgets.viewpager2

import android.view.LayoutInflater
import com.exercise.struct.base.BaseActivity
import com.exercise.struct.ext.start
import com.exercise.struct.viewmodel.BaseViewModel
import com.exercise.widgets.databinding.ActivityViewPager2Binding
import com.exercise.widgets.viewpager2.cards.Card
import com.exercise.widgets.viewpager2.cards.CardViewAdapter
import com.google.android.material.tabs.TabLayoutMediator

class ViewPager2Activity : BaseActivity<BaseViewModel, ActivityViewPager2Binding>() {
    override val bindingInflater: (LayoutInflater) -> ActivityViewPager2Binding
        get() = ActivityViewPager2Binding::inflate
    override val modelClass: Class<BaseViewModel>
        get() = BaseViewModel::class.java

    override fun initData() {
    }

    override fun initView() {
        binding.btn1.setOnClickListener {
            start(CardViewTabLayoutActivity::class.java)
        }
        binding.btn22.setOnClickListener {
            start(CardFragmentActivity::class.java)
        }
    }
}